package org.grottarossa.template.data.enums;

/**
 * I task possono essere di vario tipo:
 * 1) Section Rappresenta la categoria di un determinato task
 * 2) Element Rappresenta il task vero e proprio
 * */
public enum EnumTaskType
{
	Default(1),
	Section(2),
	Element(3);		
	
	EnumTaskType(int val)
	{ }	
	
	public static EnumTaskType getEnumValue(int target)
	{
		switch (target) {
		case 1:		
			return Default;	
		case 2:		
			return Section;
		case 3:			
			return Element;				
		default:
			return Default;
		}
	}	
	
	public boolean isDefault()
	{
		switch (this) {
		case Default:			
			return true;		
		}
		return false;
	}
	public boolean isSection()
	{
		switch (this) {
		case Section:			
			return true;		
		}
		return false;
	}
	public boolean isElement()
	{
		switch (this) {
		case Element:			
			return true;		
		}
		return false;
	}	
}	
